
/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * 给移动端的接口
 */


package com.jeesite.modules.pile.web;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.apache.tools.ant.taskdefs.Get;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import com.jeesite.common.config.Global;
import com.jeesite.common.entity.Page;
import com.jeesite.common.web.BaseController;
import com.jeesite.modules.pile.entity.Pile;
import com.jeesite.modules.pile.service.PileService;

/**
 * 停车桩Controller
 * @author 谢宇燊
 * @version 2020-04-05
 */

@RestController
@RequestMapping(value = "/pile")
@CrossOrigin
public class PileMobileController extends BaseController {

    @Autowired
    private PileService pileService;


    /**
     * 查询列表数据
     */

    @RequestMapping(value = "/pile", method = RequestMethod.GET , produces = "application/json")
    @ResponseBody
    public List<Pile> getPile(){
//        Pile pile = pileService.findAll();
//        List<Pile> response = List.getSuccessResponse(pile);
        return pileService.findAll();
    }


}
